package info.motteke.mybws.node;

import info.motteke.mybws.NodeVisitor;

public class TextNode extends AbstractNode {

    private String text;

    public TextNode(String text) {
        this.text = text;
    }

    public String getText() {
        return text;
    }
    
    @Override
    public void accept(NodeVisitor visitor) {
        visitor.visitText(this);
    }

}
